﻿@{
    ViewBag.Title = "XiYiDeptReportIndex";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Head
{
    @Html.Css("EditForm")
    @Html.Js("datepicker")
    @Html.Css("dp")
    <script type="text/javascript">
        var mainheight = document.documentElement.clientHeight;
        var mainWidth = document.documentElement.clientWidth;
        $(document).ready(function () {
            $("#btnExport").click(function () {
                var vtxtData = $("#txtData").val();
                var strulr = "ReportOut?Date=" + vtxtData;
                var subwin = window.open(strulr, "", "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=yes");
                subwin.moveTo(0, 0);
                subwin.resizeTo(window.screen.availWidth, window.screen.availHeight);
                return false;
            });
        });
    </script>
}
<div id="container">
    <div id="mainContent">
        <div id="title" class="title">
            洗衣房部门日报表</div>
        <div id="findDiv">
            <table>
                <tr>
                    <td>
                        日期：
                    </td>
                    <td>
                        @Html.TextBox("txtData", DateTime.Now.Date.ToString("yyyy-MM"), new { @ReadOnly = true, @style = "width:140px;", @class = "Wdate", onfocus = "WdatePicker({vel:'C1SignInTime.BeginTime',dateFmt:'yyyy-MM'})" })
                    </td>
                    <td>
                        <a id="btnExport" class="button" href="javascript:void(0);"><span>导 出</span></a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
